package array.object;

public class ObjectArrayMain {
	
	public static void main(String[] args) {
		
		Dog[] dogs = new Dog[5];
		
		for (int i = 0; i < dogs.length; i++) {
			System.out.println("dogs[" + i + "]: " +
					dogs[i]);
		}
		
		dogs[0] = new Dog("쫑쫑이", "불독");
		dogs[1] = new Dog("워리", "똥개");
		dogs[2] = new Dog("개똥이", "진도개");
		dogs[3] = new Dog("발리", "푸들");
		dogs[4] = new Dog("투덜이", "잡종");
		
		for (int i = 0; i < dogs.length; i++) {
			System.out.println("dogs[" + i + "]: " +
					dogs[i]);
		}
		
	}
	
}
